package com.shxc.smarttrade.index.model;

import java.util.List;

/**
 * 首页 ea详情
 */

public class EAInfoModel {


    /**
     * data : [{"id":1,"weekYieldRate":0.07,"precisionRate":20,"dayCount":0,"profitRateCount":0.06,"newOpen":{"volume":0.01,"symbolCn":"黄金","symbolEn":"XAUUSD","cmd":1}}]
     * err_code : 0
     * err_msg : successe
     */

    private String err_code;
    private String err_msg;
    private List<DataBean> data;

    public String getErr_code() {
        return err_code;
    }

    public void setErr_code(String err_code) {
        this.err_code = err_code;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 1
         * weekYieldRate : 0.07
         * precisionRate : 20
         * dayCount : 0
         * profitRateCount : 0.06
         * newOpen : {"volume":0.01,"symbolCn":"黄金","symbolEn":"XAUUSD","cmd":1}
         */

        private int id;//eaId
        private double weekYieldRate;//周盈利率
        private double precisionRate;//准确率
        private int dayCount;//每日交易
        private double profitRateCount;//盈利率
        private NewOpenBean newOpen;//最新开仓

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public double getWeekYieldRate() {
            return weekYieldRate;
        }

        public void setWeekYieldRate(double weekYieldRate) {
            this.weekYieldRate = weekYieldRate;
        }

        public double getPrecisionRate() {
            return precisionRate;
        }

        public void setPrecisionRate(double precisionRate) {
            this.precisionRate = precisionRate;
        }

        public int getDayCount() {
            return dayCount;
        }

        public void setDayCount(int dayCount) {
            this.dayCount = dayCount;
        }

        public double getProfitRateCount() {
            return profitRateCount;
        }

        public void setProfitRateCount(double profitRateCount) {
            this.profitRateCount = profitRateCount;
        }

        public NewOpenBean getNewOpen() {
            return newOpen;
        }

        public void setNewOpen(NewOpenBean newOpen) {
            this.newOpen = newOpen;
        }

        public static class NewOpenBean {
            /**
             * volume : 0.01
             * symbolCn : 黄金
             * symbolEn : XAUUSD
             * cmd : 1
             */

            private double volume;//手数
            private String symbolCn;//品种
            private String symbolEn;//品种英文名字
            private int cmd;//方向 0 买涨 1买跌

            public double getVolume() {
                return volume;
            }

            public void setVolume(double volume) {
                this.volume = volume;
            }

            public String getSymbolCn() {
                return symbolCn;
            }

            public void setSymbolCn(String symbolCn) {
                this.symbolCn = symbolCn;
            }

            public String getSymbolEn() {
                return symbolEn;
            }

            public void setSymbolEn(String symbolEn) {
                this.symbolEn = symbolEn;
            }

            public int getCmd() {
                return cmd;
            }

            public void setCmd(int cmd) {
                this.cmd = cmd;
            }
        }
    }
}
